import 'package:boss/provider/regist_provider.dart';
import 'package:boss/ui/page/regist/widget/regist_form.dart';
import 'package:boss/ui/widget/loginRegistForget/lrf_btn.dart';
import 'package:boss/ui/widget/loginRegistForget/lrf_title.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';

import 'regist_protocol.dart';

class RegistBrowser extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return SingleChildScrollView(
      padding: EdgeInsets.zero,
      child: Column(
        children: <Widget>[
          LRFTitle('注册你的门店'),
          RegistForm(),
          RegistProtocol(),
          LRFBtn(
            title: '注册并登录',
            onTap: () {
              var registProvider = Provider.of<RegistProvider>(context, listen: false);
              registProvider.checkStore(context);
            },
          ),
        ],
      ),
    );
  }
}
